//引入封装的公共的请求插件
import { POST, UPLOAD} from '@/services/request.js'

export default {
    login(data = {})
    {
        return POST({
            url: '/business/login',
            params: data
        })
    },
    check(data = {})
    {
        return POST({
            url: '/business/check',
            params: data
        })
    },
    profile(data = {})
    {
        return UPLOAD({
            url: '/business/profile',
            params: data
        })
    },
    sendemail(data = {})
    {
        return POST({
            url: '/business/sendemail',
            params: data
        })
    },
    email(data = {})
    {
        return POST({
            url: '/business/email',
            params: data
        })
    },
    coupon(data = {})
    {
        return POST({
            url: '/business/coupon',
            params: data
        })
    },
    spendrecord(data = {})
    {
        return POST({
            url: '/business/spendrecord',
            params: data
        })
    },
    membership(data = {})
    {
        return POST({
            url: '/business/membership',
            params: data
        })
    },
    commission(data = {})
    {
        return POST({
            url: '/business/commission',
            params: data
        })
    },
    getcommissionmoney(data = {})
    {
        return POST({
            url: '/business/getcommissionmoney',
            params: data
        })
    },
}